<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<link href="css/reset.css" rel="stylesheet" type="text/css" />
<link href="css/gird.css" rel="stylesheet" type="text/css" />
<link href="css/iehack.css" rel="stylesheet" type="text/css" />
<link href="css/header.css" rel="stylesheet" type="text/css" />
<link href="css/usercenter.css" rel="stylesheet" type="text/css" />
</head>
<script type="text/javascript">
function viewnote(){
	document.getElementById("note_message").style.display="";
}
</script>
<body>
<div class="page">
  <jsp:include page="inc/header.jsp" />
  <div class="content">
    <div class="gird-s5c14e5">
      <div class="col-main">
        <div class="box" id="userinfo">
          <div class="box-tp"></div>
          <div class="box-main clearfix">
            <div class="user-icon"><img src="img/icon_user.png" width="64" height="64" /></div>
            <div class="user-info">
              <p>尊敬的用户 <strong><s:property value="webUser.user_name"/> </strong> 您好！欢迎登录湖北包装网！您现在的级别是“<em><s:if test="webUser.user_level==0||webUser.user_level==3">网站会员</s:if><s:elseif test="webUser.user_level==1">高级会员</s:elseif><s:elseif test="webUser.user_level==2">企业会员</s:elseif><s:else></s:else></em>”</p>
              <s:if test="webUser.user_level==0||webUser.user_level==3">
              <p class="tips">您可以通过完善您的资料自动升级成“<strong>高级会员</strong>”；<a href="personal_reg.jsp" class="wszl">马上完善资料</a></p>
	              <s:if test="companyUser.flag==null">
	              <p class="tips">您也可以申请“<strong>协会企业会员</strong>”。<a href="../user/getComRegState.action" class="qyhy">申请企业会员</a></p>
	               </s:if>
	               <s:if test="companyUser.flag==0">
	               <p class="tips">您的“<strong>协会企业会员</strong>”申请正在被审核。</p>
	               </s:if>
	               <s:if test="companyUser.flag==3">
	               <p class="tips">您的“<strong>协会企业会员</strong>”申请审核已通过。</p>
	               </s:if>
              </s:if>
              <s:if test="webUser.user_level==1">
              <s:if test="companyUser.flag==null">
	              <p class="tips">您也可以申请“<strong>协会企业会员</strong>”。<a href="../user/getComRegState.action" class="qyhy">申请企业会员</a></p>
	               </s:if>
	               <s:if test="companyUser.flag==0">
	               <p class="tips">您的“<strong>协会企业会员</strong>”申请正在被审核。</p>
	               </s:if>
	               <s:if test="companyUser.flag==3">
	               <p class="tips">您的“<strong>协会企业会员</strong>”申请审核已通过。</p>
	               </s:if>
              </s:if>
              <s:if test="companyUser.money==0&&companyUser.flag==3">
              <p class="tips">您尚未填写汇款信息 <a href="money_info.jsp" >填写汇款信息</a> </p>
              </s:if>
              <s:if test="companyUser.money==1">
              <p class="tips"><a href="../user/getMoneyList.action">汇款信息</a> </p>
              </s:if>
              <s:if test="webUser.user_level==11"><!-- 暂时保留 -->
              <p class="tips">您的企业会员截止日期为<s:property value="companyUser.maturity_date"/> </p>
              </s:if>
              <s:if test="webUser.user_message!=null">
              <p class="tips"><s:property value="webUser.user_message"/><a href="../user/getComUserView1.action"><strong>修改</strong></a> </p>
              </s:if>
              <s:if test="noteList.size>0">
              <p class="tips">您有<s:property value="noteList.size"/>条新信息<a href="#" onclick="viewnote()"><strong>查看</strong></a> </p>
              </s:if>
              <s:iterator value="companyDutyList">
              <s:if test="check_state==0">
              	<p class="tips">您的协会职务<strong><s:if test="sqr_xhzw==1">理事</s:if><s:elseif test="sqr_xhzw==2">常务理事</s:elseif><s:else>副会长</s:else></strong>的申请正在被审核 </p>
              	</s:if>
              	<s:if test="check_state==1">
              	<p class="tips">您的协会职务<strong><s:if test="sqr_xhzw==1">理事</s:if><s:elseif test="sqr_xhzw==2">常务理事</s:elseif><s:else>副会长</s:else></strong>的申请已通过 </p>
              	</s:if>
              	<s:if test="check_state==2">
              	<p class="tips">您的协会职务<strong><s:if test="sqr_xhzw==1">理事</s:if><s:elseif test="sqr_xhzw==2">常务理事</s:elseif><s:else>副会长</s:else></strong>的申请未通过 </p>
              	</s:if>
              </s:iterator>
            </div>
          </div>
          <div class="box-bt"></div>
        </div>
        <div id="note_message" style="display:none ">
	        <div class="box" id="hypc">
	          <h3>新消息</h3>
	          
	          <div class="btn">
				<table>
				<s:iterator value="noteList">
					<tr>
					
						<td width="450" align="left"><p class="tips"><font color="red"><a target="_bank" href="../note/noteInfo.action?note_id=<s:property value="note_id"/>"><s:if test="note_message.length()>20"><s:property value="note_message.substring(0,20)"/></s:if><s:else><s:property value="note_message"/></s:else> </a></font> </p> </td>
						<td><s:property value="time"/></td>
					</tr>
				</s:iterator>	
				</table>
			  </div>
	        </div>
        </div>
        
        <div class="box" id="hypc">
          <h3>行业普查</h3>
          <s:if test="indagatepersonONorOFF==1&&indagateONorOFF==0">
          <p class="tips">您尚未参加行业普查，是否马上参加？</p>
          <div class="btn"><a href="../indagate/toIndagateAdd.action" class="cjpc">马上参加行业普查</a></div>
          </s:if>
          <s:if test="indagatepersonONorOFF==1&&indagateONorOFF==1">
          <p class="tips">今年的行业普查已经关闭</p>
          <p class="tips">您尚未参加行业普查</p>
          </s:if>
          <s:if test="indagatepersonONorOFF==0">
          <p class="tips">您已经参加行业了普查</p>
          </s:if>
        </div>
        <div class="box" id="tougao">
          <h3>投稿记录</h3>
          <p class="tips">您共计投稿<strong>XX</strong>篇，其中有<strong>X</strong>篇被采用，继续努力哦！</p>
          <div class="btn"><a href="#" class="wytg">我要投稿</a></div>
        </div>
      </div>
      <div class="col-sub">
        <div class="box">
          <div class="box-tp"></div>
          <div class="box-main">
            <h2>用户中心</h2>
            <ul>
              <li><a href="../user/getComRegState.action">申请企业会员</a></li>
              <s:if test="companyUser.money==1">
              <li><a href="../user/ToAddComDuty.action">申请协会职务</a></li>
              </s:if>
              <li><a href="../user/webUserEdit.action">资料修改</a></li>
              <li><a href="../note/getNoteListByUser.action">我的消息</a></li>
              <s:if test="indagateONorOFF==0">
              <li><a href="../indagate/toIndagateAdd.action">参与行业普查</a></li>
              </s:if>
              <li><a href="#">我要投稿</a></li>
              <li><a href="../user/UserLoginOut.action">退出</a></li>
            </ul>
          </div>
          <div class="box-bt"></div>
        </div>
      </div>
      <div class="col-extra">
        <div class="box" id="xhgg">
          <div class="box-tp"></div>
          <div class="box-main">
            <h2>协会公告</h2>
            <ul>
              <li><a href="#">湖北省包装技术协会设计...</a></li>
              <li><a href="#">关于印发机电产品包装节...</a></li>
              <li><a href="#">关于召开2009两岸三地包...</a></li>
              <li><a href="#">关于申报2009年包装行业...</a></li>
              <li><a href="#">湖北省包装技术协会设计...</a></li>
              <li><a href="#">关于印发机电产品包装节...</a></li>
              <li><a href="#">关于召开2009两岸三地包...</a></li>
              <li><a href="#">关于申报2009年包装行业...</a></li>
              <li><a href="#">湖北省包装技术协会设计...</a></li>
              <li><a href="#">关于印发机电产品包装节...</a></li>
              <li><a href="#">关于召开2009两岸三地包...</a></li>
              <li><a href="#">关于申报2009年包装行业...</a></li>
            </ul>
          </div>
          <div class="box-bt"></div>
        </div>
      </div>
    </div>
  </div>
  <jsp:include page="inc/footer.jsp" />
</div>
</body>
</html>
